<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="com.infomanage.vo.*"%>
<%@page import="com.infomanage.po.*"%>
<%@page import="com.infomanage.enums.*"%>
<%@page import="com.qs.service.*"%>
<%@page import="com.qs.vo.*"%>
<%@page import="com.qs.po.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	User user = (User) request.getSession().getAttribute(com.infomanage.util.Consts.LOGINED_USER);
	List<QsStarCheckItem> list = StarCheckService.generateReportData(request, response, out);
%>
<html>
<head>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
</head>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0" onclick="parent.clickBody();">
	<table width="100%">
		<tr>
			<td  align="center"><h2>救护消防大队2011年7月份救护队员星级考核评定表</h2></td>
		</tr>
	</table>
	<table id="dataTable" border="1" align="center" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#000000" width="100%">
		<tr>
			<td colspan="2"></td>
			<td colspan="5" align="center">仪器操作</td>
			<td colspan="5" align="center">消防技能</td>
			<td colspan="11" align="center">综合体能</td>
			<td colspan="4" align="center">装备维护</td>
			<td colspan="3" align="center">日常考核</td>
			<td colspan="1" align="center">综合评定</td>
		</tr>
		<tr>
			<td colspan="2"></td>
			<td>呼吸器</td>
			<td>检定器</td>
			<td>瓦检器</td>
			<td>苏生器</td>
			<td>其他仪器</td>
			<td>原地着装</td>
			<td>两盘水带</td>
			<td>三盘水带</td>
			
			<td>消防车操作</td>
			<td>破拆工具</td>
			<td>检力器</td>
			<td>单杠</td>
			<td>爬绳</td>
			<td>跳远</td>
			<td>蹲起</td>
			<td>举重</td>
			<td>哑铃</td>
			<td>万米配氧</td>
			
			<td>激烈行动</td>
			<td>两千米</td>
			<td>俯卧撑</td>
			<td>救护仪器</td>
			<td>消防器材</td>
			<td>公共财产</td>
			<td>车辆保养</td>
			<td>迟到早退</td>
			<td>矿工</td>
			<td>事假</td>
			
			<td>星级</td>
			
		</tr>
		<%
			for(QsStarCheckItem item : list){
				QsStarCheck bean = item.getBean();
				String starLevel = "";
				switch (item.getBean().getLevel()) {
				case 0:
						starLevel = "☆☆☆☆☆";
						break;
					case 1:
						starLevel = "★☆☆☆☆";
						break;
					case 2:
						starLevel = "★★☆☆☆";
						break;
					case 3:
						starLevel = "★★★☆☆";
						break;
					case 4:
						starLevel = "★★★★☆";
						break;
					case 5:
						starLevel = "★★★★★";
						break;
					}
		%>
		<tr>
			<td rowspan="5"><%=item.getDept().getPath() %></td>
			<td><%=bean.getPersonName() %></td>
			<td><%=item.getHxq() %></td>
			<td><%= item.getJdq()%></td>
			<td><%= item.getWjq()%></td>
			<td><%= item.getSsq()%></td>
			<td><%= item.getQtyq()%></td>
			<td><%= item.getYdzz()%></td>
			<td><%= item.getLpsd()%></td>
			<td><%= item.getSpsd()%></td>
			
			<td><%= item.getXfccz()%></td>
			<td><%= item.getPcgj()%></td>
			<td><%= item.getJlq()%></td>
			<td><%= item.getDg()%></td>
			<td><%= item.getPs()%></td>
			<td><%= item.getTy()%></td>
			<td><%= item.getDq()%></td>
			<td><%= item.getJz()%></td>
			<td><%= item.getYl()%></td>
			<td><%= item.getWmpy()%></td>
			
			<td><%= item.getJlxd()%></td>
			<td><%= item.getLqm()%></td>
			<td><%= item.getFwc()%></td>
			<td><%= item.getJhyq()%></td>
			<td><%= item.getXfqc()%></td>
			<td><%= item.getGgcc()%></td>
			<td><%= item.getClby()%></td>
			<td><%= item.getCdzt()%></td>
			<td><%= item.getKg()%></td>
			<td><%= item.getSj()%></td>
			
			<td><%=       starLevel   								%></td>
		</tr>
		<%} %>
	</table>
</body>
</html>
